package Example7;

public class XIAOMIBuilder extends MobileBuilder {

    private XIAOMIBuilder(){

    }

    @Override
    protected XIAOMIBuilder buildName(String name) {
       super.mobile.setName(name);
       return this;
    }

    @Override
    public XIAOMIBuilder buildCPU(String cpu) {
        super.mobile.setCpu(cpu);
        return this;
    }

    @Override
    public XIAOMIBuilder buildGPU(String gpu) {
        super.mobile.setGpu(gpu);
        return this;
    }

    @Override
    public XIAOMIBuilder buildRAM(String ram) {
        super.mobile.setRam(ram);
        return this;
    }

    @Override
    public XIAOMIBuilder buildROM(String rom) {
        super.mobile.setRom(rom);
        return this;
    }

    public static XIAOMIBuilder builder(){
        return new XIAOMIBuilder();
    }
}
